package com.peas.platform.module.icims.expenditure.expenses.dto;

import java.util.*;
import java.math.*;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

// 报账单
@Data
@EqualsAndHashCode(callSuper = false)
public class ExpenditureReimbursementDto extends BaseDto {

    // 指标单表ID
    // （指标单表）外键
    @Comment(value = "指标单表ID")
    private Long expenditureKpiId;

    // 事前用款申请单ID
    // （事前用款申请单表）外键
    @Comment(value = "事前用款申请单ID")
    private Long expenditureApplicationId;

    // 报账单类型
    // 枚举取值:ExpenditureReimbursementType
    @Comment(value = "报账单类型", enumType = "ExpenditureReimbursementType")
    @Condition(operator = ConditionOperator.IN)
    private String reimbursementType;

    // 报账单号
    // 自动生成
    @Comment(value = "报账单号")
    @Condition(operator = ConditionOperator.IN)
    private String reimbursementCode;

    // 报账日期
    @Comment(value = "报账日期")
    private Date reimbursementDate;

    // 经济分类
    // （经济分类表）多级外键
    @Comment(value = "经济分类")
    private String expenditureEconomicId;

    // 会计科目
    // （会计科目表）多级外键
    @Comment(value = "会计科目")
    private String expenditureSubjectId;

    // 金额
    @Comment(value = "金额")
    private BigDecimal amount;

    // 已支付金额
    @Comment(value = "已支付金额")
    private BigDecimal payedAmount;

    // 结算方式
    // 字典取值:ExpenditureSettlement
    @Comment(value = "结算方式", dictType = "ExpenditureSettlement")
    @Condition(operator = ConditionOperator.IN)
    private String settlement;

    // 申请人部门ID
    // （组织架构表）外键
    @Comment(value = "申请人部门ID")
    private Long applicationOrganizationId;

    // 申请人用户ID
    // （用户表）外键
    @Comment(value = "申请人用户ID")
    private Long applicationUserId;

    // 状态
    // 0保存、1提交审批、2审批通过、3审批驳回、4撤回
    // 枚举取值:ExpenditureReimbursementState
    @Comment(value = "状态", enumType = "ExpenditureReimbursementState")
    @Condition(operator = ConditionOperator.IN)
    private String state;

    // 备注
    @Comment(value = "备注")
    private String remark;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
    private Date reimbursementDateStart;
    private Date reimbursementDateEnd;
}
